package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.Brand;
import com.settlement.system.model.vo.TreeJson;

import java.util.List;
import java.util.Map;

/**
 * 品牌信息表 服务类
 * @author xiaochuan
 * @since 2020-04-13
 */

public interface IBrandService extends IBaseService {

    /**
     * selectBrandWithBrandUnit
     * @param params
     * @return
     * @throws ServiceException
     */
    List<TreeJson> selectBrandWithBrandUnit(Map<String, Object> params) throws ServiceException;

    /**
     * 通过品牌名称获取品牌
     * @param brandName
     * @return
     * @throws ServiceException
     */
    public List<Brand> getBrandByName(String brandName) throws ServiceException;

    /**
     * 通过品牌编码获取品牌
     * @param brandNo
     * @return
     * @throws ServiceException
     */
    Brand getBrandByNo(String brandNo) throws ServiceException;
}

